cmake_minimum_required(VERSION 3.19)

project(PICO-USB-Host-Demo)

add_executable(${PROJECT_NAME}
        main.cpp
)

if (CMAKE_SYSTEM_NAME MATCHES "Linux")
    target_include_directories(${PROJECT_NAME}
        PRIVATE
            /usr/include/libusb-1.0
    )
    target_link_libraries(${PROJECT_NAME}
        PRIVATE
            libusb-1.0.so
    )
else()
    target_include_directories(${PROJECT_NAME}
            PRIVATE
            D:/Development/Envs/libusb-1_0_27/include
    )
    target_link_libraries(${PROJECT_NAME}
            PRIVATE
            D:/Development/Envs/libusb-1_0_27/MinGW64/static/libusb-1.0.a
    )
endif()
